//@require @packageOverrides

Ext.Loader.setPath('Ext.ux', './assets/extjs-4.2/src/ux');
Ext.Loader.setPath('Ext.util', './assets/extjs-4.2/src/util');

if (Ext.repoDevMode) {
    document.write('<link rel="stylesheet" type="text/css" href="./assets/extjs-4.2/build/KitchenSink/ext-theme-' +
        Ext.themeName + '/resources/KitchenSink-all.css"/>');
}

Ext.application({
	name: 'SKJF',    
    appFolder: 'extskjf/app',
    autoCreateViewport: true,

    requires: [
		'Ext.ProgressBar',
        'Ext.state.CookieProvider',
        'Ext.window.MessageBox',
        'Ext.tip.QuickTipManager',
        'Ext.ModelManager',
        'Ext.form.*',
        'Ext.window.MessageBox',
        'Ext.layout.component.field.*',
		'Ext.ux.grid.GridHeaderFilters',
		'Ext.grid.*',
		'Ext.data.*',
		'Ext.util.*',
		'Ext.grid.plugin.BufferedRenderer',
        'Ext.ux.RowExpander',
        'Ext.XTemplate',
        'Ext.ux.form.NumericField',
		'Ext.ux.grid.FiltersFeature',
		'Ext.toolbar.Paging',
        'SKJF.store.s_menus',
        'SKJF.view.Viewport',
        'SKJF.view.Header',
        'SKJF.view.Navigation',
        'SKJF.view.ContentPanel',
        'Ext.state.CookieProvider',
        'Ext.window.MessageBox',
        'Ext.tip.QuickTipManager',
		'Ext.ux.egen.Printer'
    ],

    controllers: [
        'Main','S_USERS','SALESRTN','SALESRTNDET','USERMANAGE','MSTHSCODE','MSTJNSBARANG','MSTACCOUNT','PO','PODETAIL','PURCHASERTN','PURCHASERTNDET','BEAIMPORT','MSTBANKACCOUNT','MSTCURCUKAI','MSTCUREFEKTIF','MSTFAKTURPAJAK','MSTCURRENCY','MSTSUPPLIER','MSTBARANG','MSTCUSTOMER','MSTSATUAN','LUNASHUTANG','LUNASPIUTANG','PENAWARAN','PENAWARANDET','POCLIENT','POCLIENTDET','DO','DODETAIL','FAKTURPAJAK','TERIMABARANG','TERIMABARANGDET',
        'MSTACCOUNTSKJF','MSTCURTENGAH'
    ],
    init: function() {
        Ext.setGlyphFontFamily('Pictos');
        Ext.tip.QuickTipManager.init();
        Ext.state.Manager.setProvider(Ext.create('Ext.state.CookieProvider'));
        
        if (Ext.util.Format) {
			Ext.apply(Ext.util.Format, {
				thousandSeparator : ".",
				decimalSeparator  : ","
			});
		}
    }
});
